//
//  ADButton.h
//  ADKit
//
//  Created by duzexu on 2017/12/19.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ADButtonLayout) {
    ADButtonLayoutNormal = 0,//图片在左，文字在右
    ADButtonLayoutImageRight = 1,//图片在右，文字在左
    ADButtonLayoutImageTop = 2,//图片在上，文字在下
    ADButtonLayoutImageBottom = 3,//图片在下，文字在上
};//文字图片布局

@interface ADButton : UIButton

@property (nonatomic, assign) IBInspectable BOOL resizable; //背景图是否拉伸，默认是NO

@property (nonatomic, assign) IBInspectable NSInteger space; //图片文字间距，默认是0
@property (nonatomic, assign) IBInspectable NSUInteger layout; //布局方式，默认是 ADButtonLayoutNormal

+ (instancetype)buttonWithSpace:(NSInteger)buttonSpace;
+ (instancetype)buttonWithLayout:(ADButtonLayout)buttonLayout space:(NSInteger)buttonSpace; 

@end
